﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Com.ContentRendering.Api.DataEngine;

namespace Com.ContentRendering.Api.DataEngineComponentTest.Helper
{
    internal static class ChildAndSelfRelfectionHelper
    {
        internal static IEnumerator<object> Translate(
            ReflectionCache reflectionCache,
            object value,
            string name)
        {
            // this is here because refactoring the test code could be dangerous ... do this properly at a later date

            object newValue = ChildReflection.Translate(
                reflectionCache,
                value,
                name);

            return SelfReflection.Translate(
                reflectionCache,
                newValue);
        }
    }
}
